package com.jch.dm5_producer_consumer.example;

import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;

public class TestRunner {

    public static void main(String[] args) {
        AttachmentProcessor ap = new AttachmentProcessor();
        ap.init();
        InputStream in = new ByteArrayInputStream("测试".getBytes());
        try {
            ap.saveAttachment(in,"10001","TEST");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}
